<template>
	<view>
		<nav-top tit="积分商品兑换"></nav-top>
		<!-- 伦比图 -->
		<view class="swiperBox">
			<swiper  class="swiperPic"  @change="changePic">
				<swiper-item  v-for="(item,index) in picList">
					<view class="swiper-item">
						<image :src="item" mode=""></image>
					</view>
				</swiper-item>
			</swiper>
			<view class="pic_num">{{currentNum}}/{{picList.length}}</view>
		</view>
		
	</view>
</template>

<script>
	import navTop from "@/components/navTop.vue"
	export default {
		components:{
			navTop
		},
		data() {
			return {
				currentNum:1,
				totalNum:0,
				picList:[
					"../../static/pic/xj2.jpeg",
					"../../static/pic/xj1.jpeg"
				]
			}
		},
		methods: {
				changePic(e){
					this.currentNum =	e.detail.current+1 
					
				}
		}
	}
</script>

<style lang="scss">


.swiperBox {
	position: relative;
	width: 100%;
	height: 700rpx;
	.pic_num {
		position: absolute;
		bottom: 0;
		right: 30rpx;
		padding: 0 10rpx;
		height: 40rpx;
		color: #FFFFFF;
		background-color: #DFDFDF;
	}
}
//	轮播图
.swiperPic {
	width: 100%;
	height: 100%;
	// background-color: green;
	
	.swiper-item {
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		
		image {
			width: 600rpx;
			height: 600rpx;
		}
	}
	
}
</style>
